package cc.rengu.igas.bomp.common.dao;

import cc.rengu.igas.bomp.common.entity.BspsMchntBindInfo;

import java.util.List;

/**
 * 商户绑定信息操作接口.
 *
 * @author sccba  
 * @version 1.0
 * @date 2019/08/15  
 */
public interface BompMchntBindInfoMapper {


    /**
     * 根据用户标识，商户号查询商户绑定信息
     *
     * @param instId  机构标识
     * @param userId  用户标识
     * @param mchntNo 商户号
     * @return 商户绑定信息
     * @throws Exception 异常
     */
    BspsMchntBindInfo selectBompMchntBindInfoListByUserIdAndMchntNo(String instId, String userId, String mchntNo) throws Exception;

    /**
     * 根据用户标识，商户号查询商户绑定信息
     *
     * @param instId 机构标识
     * @param userId 用户标识
     * @return 商户绑定信息
     * @throws Exception 异常
     */
    List<BspsMchntBindInfo> selectBompMchntBindInfoListByUserId(String instId, String userId) throws Exception;

    List<BspsMchntBindInfo> selectBompMchntBindInfoByMchntNo(String instId, String mchntNo) throws Exception;

    int updateBompMchntBindInfoByMchntStopOrCancel(BspsMchntBindInfo mchntBindInfo) throws Exception;

    int updateBompMchntBindInfoByPrimaryKey(BspsMchntBindInfo mchntBindInfo) throws Exception;
}
